package cn.gov.cbrc.east.verify;

/**
 * 项目名称：EastCheck<br>
 * *********************************<br>
 * <P>类名称：Exp</P>
 * *********************************<br>
 * <P>类描述：表达式验证匹配</P>
 * 创建人：王川<br>
 * 创建时间：Jan 22, 2016 3:35:57 PM<br>
 * 修改人：王川<br>
 * 修改时间：Jan 22, 2016 3:35:57 PM<br>
 * 修改备注：<br>
 * @version 1.0<br>    
 */
public enum Exp {
	F("F"),		//F()
	Cn("Cn"),	//Cn(n)
	Cnm("C..n"),//Cnm(0,n)
	I("I"),		//I()
	In("In"),	//In(n)
	Inm("I..n"),//Inm(0,n)
	Dw("Dw"),	//Dw(w)
	Dwd("Dw.d"),//Dwd(w,d)
	Sd("单选"),	//Sd(s)
	Sdm("多选"), //Sdm(s)
	Nvl("非空"),	//Nvl()
	NOTFOUND;

	
	private Exp(){
		exp = "";
	}
	
	private Exp(String exp){
		this.exp = exp;
	}
	
	public static Exp toIndex(String exp){
		try{
			return valueOf(exp);
		}catch(Exception e){
			return NOTFOUND;
		}
	}
	
	private final String exp;

	public String getExp() {
		return exp;
	}

}
